package com.chinafree.business.model.enumeration;

public enum DeliveryStatusEnum {

    NOT_CHECK(0, "未查看"),

    CHECK(2, "已查看"),

    COMMUNICATION(3, "正在沟通中"),

    INTERVIEW(4, "面试"),

    CLOSE(5, "关闭");

    public void setName(String name) {
        this.name = name;
    }

    private Integer id;
    private String name;

    DeliveryStatusEnum(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public static String getName(Integer id) {
        for (DegreeEnum degreeEnum : DegreeEnum.values()) {
            if (degreeEnum.getId().equals(id)) {
                return degreeEnum.getName();
            }
        }
        return null;
    }
}
